package com.catclay.adultmoon.service.impl.order;

import com.catclay.adultmoon.dao.OrderDao;
import com.catclay.adultmoon.pojo.Order;
import com.catclay.adultmoon.service.order.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderDao orderDao;

    @Override
    public List<Order> getOrderList() {
        return orderDao.getOrderList();
    }

    @Override
    public int add(Order order) {
      return orderDao.add(order);
    }

    @Override
    public int del(Integer id) {
        return orderDao.del(id);
    }

    @Override
    public int update(Order order) {
        return 0;
    }
}
